package cc.linker.steplink.crm.merchant.service;


import cc.linker.steplink.crm.merchant.dao.FormPcDao;
import cc.linker.steplink.crm.merchant.pojo.FormTagPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FormPcService {

    @Autowired
    private FormPcDao formDao;

    public void add(Map<String, Object> param) {
        formDao.add(param);
    }

    public void update(Map<String, Object> param) {
        formDao.update(param);
    }

    public FormTagPo getInfo(Map<String, Object> param) {
        return formDao.getInfo(param);
    }

    public List<FormTagPo> getList(Map<String, Object> param) {
        return formDao.getList(param);
    }

    public void delete(Map<String, Object> param) {
        formDao.delete(param);
    }

    public List<String> getAllFormIds() {
        return formDao.getAllFormIds();
    }

    public void deleteByFormId(String formId) {
        formDao.deleteByFormId(formId);
    }

    public void deleteById(String id) {
        formDao.deleteById(id);
    }

    public List<Map<String, Object>> getTagsListByFormId(String formId) {
        return formDao.getTagsListByFormId(formId);
    }
}
